package com.ithuameng.admin;

import com.ithuameng.admin.app.system.service.ISysJobService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class JobSchedule implements CommandLineRunner {

	@Resource
	private ISysJobService quartzJobService;
	
	@Override
	public void run(String... args) throws Exception {
		System.out.println("任务调度开始==============任务调度开始");
		quartzJobService.init();
		System.out.println("任务调度结束==============任务调度结束");
	}
}
